let baseUrl = 'https://bc.542124141.xyz/pam/'
// let baseUrl = 'https://bc-test.542124141.xyz/pam/'
// let baseUrl = 'http://47.107.64.43:8010/pam/'
let baseUrl_106='https://bc.542124141.xyz/'
// let baseUrl ='https://542124141.xyz/pam_test/'
// let baseUrl ='http://121.5.206.111:8010/pam/'

let api = {
  // getFunc: baseUrl + 'user/getFunc',
  login: baseUrl + 'user/login',
  reg: baseUrl + 'user/reg',
  canteen: baseUrl + 'menu/getList',
  // 三餐接口start
  canteen3: baseUrl + 'setmeal/getList',
  orderFood: baseUrl + 'setmeal/orderFood',
  echo: baseUrl + 'setmeal/echo',
  cancel: baseUrl + 'setmeal/cancel',
  getOrderDeadline: baseUrl + 'setmeal/getOrderDeadline',
  // 三餐接口end
  takeOut: baseUrl + 'goods/getList',
  vote: baseUrl + 'dishvote/vote',
  getDishStatus: baseUrl + 'dishvote/getDishStatus',
  uploadImage: baseUrl + 'diss/uploadImg',
  sendDiscussion: baseUrl + 'diss/add', 
  getDiscussion: baseUrl + 'diss/getList', 
  sendComment: baseUrl + 'comment/add',  
  getComment: baseUrl + 'comment/getList',
  uploadImg: baseUrl + 'comment/uploadImg',
  getNotice:baseUrl+'notice/getList',
  getGoods:baseUrl+'exc/goods/getList',
  upLoadPic:baseUrl+'exc/goods/uploadImg',
  goodsAdd:baseUrl+'exc/goods/release',
  getOnSellGoods:baseUrl+'exc/goods/getList/my', 
  getBookedGoods:baseUrl+'exc/order/getList/my',
  goodsBook:baseUrl+'/exc/order/order',
  fapiaoGetValid:baseUrl_106+'invoiceapi/getvalid',
  fapiaoSendEmail:baseUrl_106+'invoiceapi/send',
  getCurrentOrder:baseUrl+'exc/order/get/currentOrderByGoods',
  goodsSellerRemove:baseUrl+'exc/goods/drop',
  goodsSellercancelOrder:baseUrl+'exc/order/cancelBySeller',
  goodsBuyerConfirm:baseUrl+'exc/order/confirm',
  goodsBuyerCancel:baseUrl+'exc/order/cancelByBuyer',
  getAD: baseUrl + 'walking/getAD',
  isJoinActy: baseUrl + 'walking/isJoinActy',
  joinActy: baseUrl + 'walking/joinActy',
  pushWD: baseUrl + 'walking/pushWD',
  getWD: baseUrl + 'walking/getWD',
  getMapPts: baseUrl + 'walking/getMapPts',
  getPt: baseUrl + 'walking/getPt',
  getRouteState: baseUrl + 'walking/getRouteState',
  updateRouteState: baseUrl + 'walking/updateRouteState',
  getRankingList: baseUrl + 'walking/getRankingList',
  getQues: baseUrl + 'walking/getQues',
  passQues: baseUrl + 'walking/passQues',
  bindOpenid:baseUrl+'user/bindWxmp',
  cloudAllModule:baseUrl+'cloud/common/allModule',
  cloudGetAllQuestion:baseUrl+'cloud/common/getAllQuestion',
  cloudAddQuestion:baseUrl+'cloud/customer/addQuestion',
  cloudGetAllModuleQuestion:baseUrl+'cloud/common/getAllModuleQuestion',
  cloudGetDetails:baseUrl+'cloud/common/getDetails',
  cloudUpdateQuestionReadStatus:baseUrl+'cloud/common/updateQuestionReadStatus',
  cloudAddFeedback:baseUrl+'cloud/common/addFeedback',
  cloudChangeQuestionType:baseUrl+'cloud/manager/changeQuestionType',
  // 二手交易新增api
  getLatestDeal: baseUrl + 'goods/goodsV2/getLatestDeal', // 大家都在买 / 最新交易
  getLatestPost: baseUrl + 'goods/goodsV2/getLatestPost', // 好物上新 / 最新发布
  addPurchaseInfo: baseUrl + 'goods/goodsV2/addPurchaseInfo', // 发布求购
  hotSelect: baseUrl + 'goods/goodsV2/hotSelect', // 热门商品查询
  countHits: baseUrl + 'goods/goodsV2/countHits', // 浏览量计数
  getGoodsList: baseUrl + 'goods/goodsV2/getGoodsList', // 闲置商品列表查询
  getGoodsDetail: baseUrl + 'goods/goodsV2/getGoodsDetail', // 闲置商品详情查询
  getPurchaseGoodsList: baseUrl + 'goods/goodsV2/getPurchaseInfoList', // 求购商品列表查询
  getPurchaseGoodsDetail: baseUrl + 'goods/goodsV2/getPurchaseInfoDetail', // 求购商品详情查询
  markDemand: baseUrl + 'goods/goodsV2/markDemand', // 卖家下单求购商品
  getDealing: baseUrl + 'goods/goodsV2/getDealing', // 判断是否有未完成交易，用于个人中心提醒
  getMyPosts: baseUrl + 'goods/goodsV2/getMyPosts', // 查询我的发布和我的卖出列表
  getMyPostsCount: baseUrl + 'goods/goodsV2/getMyPostsCount', // 获取我的发布和我的卖出的数量
  getMyBuyCount: baseUrl + 'goods/goodsV2/getMyBuyCount', // 获取我的拍下的数量
  getMyPurchaseCount: baseUrl + 'goods/goodsV2/getMyDemandCount', // 获取我的求购的数量
  getMyRecentOrder: baseUrl + 'goods/goodsV2/getRecentOrder', // 获取我的最近交易
  cancelPurchaseDeal: baseUrl + 'goods/goodsV2/cancelDeal', // 取消求购交易
  getRecentPost: baseUrl + 'goods/goodsV2/getRecentPost', // 获得我的最新发布
  btnCancelPurchaseGoods: baseUrl + 'goods/goodsV2/changeDemand', // 取消求购
  purchaseMakeDeal: baseUrl + 'goods/goodsV2/makeDeal', // 确认求购订单
  getMyPurchaseInfoList: baseUrl + 'goods/goodsV2/getMyPurchaseInfoList', // 我的求购列表

  /**
   * 云客服新增api
   */
  getFileList: baseUrl + 'cloud/common/getFileNameList', //获取上传文件列表
  openFile: baseUrl + 'cloud/customer/getFile', // 打开文件

  //出入管理api
  formGetList: baseUrl + 'visitor/getList',
  formGetListForApprover: baseUrl + 'visitor/getListForApprover',
  formReject: baseUrl + 'crgl/EntranceGuardSystem/Return',
  formApprove: baseUrl + 'crgl/EntranceGuardSystem/Approve',
  formManage: baseUrl + 'crgl/EntranceGuardSystem/Manage',
  formDelRequest: baseUrl + 'crgl/EntranceGuardSystem/del',
  formRequestDetail: baseUrl + 'visitor/',
  formSaveRequest: baseUrl + 'visitor/add',
  formSubmitRequest: baseUrl + 'visitor/addAndSubmit',
  formGetUnreadCount: baseUrl + 'visitor/unreadcount',
  formGetNextApprover: baseUrl + 'visitor/nextapprover',
  getKeepLaunchDays: baseUrl + 'holiday/getKeepLaunchDays',  // 查询日常保持开机保持天数
  checkHoliday: baseUrl + 'holiday/checkHoliday', // 节假日校验
  approve: baseUrl + 'visitor/approve', // java开发的审批接口，用于监控调取和保持开机
  reject: baseUrl + 'visitor/reject', // java


  // 个人中心
  getUserInfo: baseUrl + 'crgl/EntranceGuardSystem/Information',
  updateDep: baseUrl + 'crgl/EntranceGuardSystem/UpdateDep',
  getDepList: baseUrl + 'crgl/EntranceGuardSystem/GetDepList',  // 查询部门

  // 智慧小C
  getAnswer: baseUrl + 'chat/getAnswer',
  createChatToken: baseUrl + 'chat/createChatToken',
}

export default api